<template>
<el-container  class="body">
        <el-header height="128px">
            <h6>电子电器协会</h6>
        </el-header>
        <el-main>
             <el-table
              :data="tableData"
              style="width: 100%">
                <el-table-column
                  prop="date"
                  label="日期"
                  width="180">
                </el-table-column>
                <el-table-column
                  prop="name"
                  label="姓名"
                  width="180">
                </el-table-column>
     
            </el-table>
        </el-main>
</el-container>
  
</template>

<script>

  export default {
    data() {
      return {
        logining: false,
        ruleForm2: {
          name: '请输入圈子名称',
          checkPass: ''
        },
        rules2: {
          account: [
            { required: true, message: '请输入账号', trigger: 'blur' },
            //{ validator: validaePass }
          ],
          validata: [
            { required: true, message: '请输入验证码', trigger: 'blur' },
            //{ validator: validaePass }
          ],
          checkPass: [
            { required: true, message: '请输入密码', trigger: 'blur' },
            //{ validator: validaePass2 }
          ]
        },
        checked: true,
        tableData: [{
            date: '2016-05-02',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1518 弄'
          }, {
            date: '2016-05-04',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1517 弄'
          }, {
            date: '2016-05-01',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1519 弄'
          }, {
            date: '2016-05-03',
            name: '王小虎',
            address: '上海市普陀区金沙江路 1516 弄'
          }]
      };
    },
    methods: {
      handleReset2() {
        this.$refs.ruleForm2.resetFields();


      },
      handleSubmit2(ev) {
        var _this = this;
        this.$refs.ruleForm2.validate((valid) => {
            if(valid){ 
              this.$fetch('/api/v2/movie/top250').then((response) => {
                // console.log(response)
              })
            } 
        });
      },
    }
  }

</script>
<style >
@import '../common/css/circle.css'

</style>
